﻿using System;
using System.ComponentModel;
using System.Data;
using System.Windows;
using ReflectionStudio.Core.Events;
namespace WPFExcelReport
{
    /// <summary>
    /// Interaction logic for ProductionOrder.xaml
    /// </summary>
    public partial class UIMULG : ViewBase
    {
        public VICC_MULLANG TMV
        {
            get
            {
                return (VICC_MULLANG)MV;
            }
        }
        #region ==IsEnOnly===========
        public static readonly DependencyProperty IsEnOnlyProperty = DependencyProperty.Register("IsEnOnly",
            typeof(bool), typeof(UIMULG),
            new FrameworkPropertyMetadata(false, FrameworkPropertyMetadataOptions.BindsTwoWayByDefault, OnIsEnOnlyChanged));
        public bool IsEnOnly
        {
            get
            {
                return (bool)GetValue(IsEnOnlyProperty);
            }
            set
            {
                SetValue(IsEnOnlyProperty, value);
                OnEnOnly();
            }
        }
        private static void OnIsEnOnlyChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
        {
            var src = sender as UIMULG;
            if (src != null)
            {
                src.IsEnOnly = (bool)e.NewValue;
            }
        }

        public virtual void OnEnOnly()
        {
             
        }
        #endregion


        public UIMULG()
        {
        }

        public virtual void OnKUNDNRChg(string value)
        {

        }

      
    }
}
